﻿@*@model IEnumerable<PilotProject.Examiner>*@
@model PilotMVC.Models.ManageExaminerView
<link href="../../Content/tables.css" rel="stylesheet" type="text/css" />
<link href="../../Content/items1/forms.css" rel="stylesheet" type="text/css" />
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

@using (@Html.BeginForm())
 {     
<div id="search">  
<fieldset> 
<legend>Search For an Examiner</legend>

         <label>JPA<span class="small">Search by JPA</span></label>   
         <div> <p>@Html.TextBox("jpa")</p></div>  
           
         <label>First Name<span class="small">Search by first name</span></label>
         <div> <p>@Html.TextBox("firstName")</p></div>
           
         <label>Last Name<span class="small">Search by last name</span></label>
         <div> <p>@Html.TextBox("lastName")</p></div>

          <p class="posp"><input type="submit" value="Search" class="searchbt"/> </p>
         

</fieldset>
       
</div>
} 
            <div id="link" style="width:200px; margin-bottom:10px;margin-left:210px;float:left;"> <p >@Html.ActionLink("Add New Examiner", "Create","Examiner")</p></div>



<div id="data">

<div class="datagrid">
<table  width="900px;">


 @if (@Model.Examiners != null)
 {
  <thead>
        <tr>
            <th>
                JPA
            </th>            
            <th>
                FirstName
            </th>
            <th>
                LastName
            </th>
            <th>
                Mobile
            </th>
            <th>
                Telephone
            </th>
            <th>
                Email
            </th>
            <th>
                Is Active
            </th>        

            <th>Edit</th>
            
        </tr>
</thead>

<tfoot><tr><td colspan="8"><div id="no-paging">&nbsp;</div></tr></tfoot>
<tbody>
     @foreach (var item in Model.Examiners)
     {
         
         
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.JPA)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FirstName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LastName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Mobile)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Telephone)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsActive)
            </td>
            <td>
                <a href="@Url.Action("Edit", "Examiner", new { id = item.Id })" ><img alt="Edit" src="../../Content/items1/img/rte/editIco.png" /> </a> 
            </td>
        </tr>
             
             
             
       }       
     </tbody>        
           
}

</table>
</div>
</div>

<div class="clear"></div>
